package com.xy.masterdata.domain.repository.impl;

import org.springframework.stereotype.Component;

import com.xy.ddd.core.repository.AbstractRepository;
import com.xy.ddd.core.convertor.AbstractConvertor;
import com.xy.ddd.core.convertor.DefaultConvertor;

import com.xy.masterdata.infrastructure.persistent.po.AppUser;
import com.xy.masterdata.domain.model.AppUserDomainModel;
import com.xy.masterdata.infrastructure.persistent.mapper.AppUserMapper;
import com.xy.masterdata.domain.repository.AppUserRepository;


@Component
public class AppUserRepositoryImpl extends AbstractRepository<AppUserDomainModel, AppUser, AppUserMapper> implements AppUserRepository{

    private AbstractConvertor<AppUserDomainModel, AppUser> convertor = new DefaultConvertor<AppUserDomainModel, AppUser>(){};

    @Override
    public AbstractConvertor<AppUserDomainModel, AppUser> convertor() {
        return convertor;
    }

}
